#!/bin/bash

# 检查/etc/issue是否存在，如果不存在则创建
if [ ! -f "/etc/issue" ]; then
    echo "创建 /etc/issue 文件"
    touch /etc/issue
fi

# 设置正确的所有者和权限
chmod root:root /etc/issue
chmod 644 /etc/issue

echo "/etc/issue 权限已配置完成"

